Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#847 Ensure that RecordSerializer can deal with subtypes #848

Merged
merged 1 commit into from
Jul 30, 2021

Conversation

theigl
Copy link
Collaborator

@theigl theigl commented Jul 29, 2021

The RecordSerializer currently fails to deserialize abstract/non-final component types, because it doesn't include concrete type information in the serialized bytes.

It would be possible to solve this in a backwards-compatible way, but that would force users to opt-in to the the correct behavior. I think we should make an exception in this case, break compatibility, and allow users who already have records serialized with the flawed implementation to selectively enable backwards-compatibility for existing records.

This will have to be documented clearly in the release notes for Kryo 5.2.0.

Resolves #847.

@theigl theigl merged commit 7ebe029 into master Jul 30, 2021
@theigl theigl deleted the record-sub-types branch July 30, 2021 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Record serialization uses incorrect types
1 participant